events: Derive Default for DirectEventContent
This commit is contained in:
		
							parent
							
								
									235e4509d3
								
							
						
					
					
						commit
						1aff2d0764
					
				@ -18,7 +18,7 @@ use crate::{OwnedRoomId, OwnedUserId};
 | 
				
			|||||||
/// user.
 | 
					/// user.
 | 
				
			||||||
///
 | 
					///
 | 
				
			||||||
/// Informs the client about the rooms that are considered direct by a user.
 | 
					/// Informs the client about the rooms that are considered direct by a user.
 | 
				
			||||||
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
 | 
					#[derive(Clone, Debug, Default, Deserialize, Serialize, EventContent)]
 | 
				
			||||||
#[allow(clippy::exhaustive_structs)]
 | 
					#[allow(clippy::exhaustive_structs)]
 | 
				
			||||||
#[ruma_event(type = "m.direct", kind = GlobalAccountData)]
 | 
					#[ruma_event(type = "m.direct", kind = GlobalAccountData)]
 | 
				
			||||||
pub struct DirectEventContent(pub BTreeMap<OwnedUserId, Vec<OwnedRoomId>>);
 | 
					pub struct DirectEventContent(pub BTreeMap<OwnedUserId, Vec<OwnedRoomId>>);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user